<script>
	export default {
		onLaunch: function() {
			
			// 获取系统信息
			const { screenWidth, statusBarHeight } = uni.getSystemInfoSync();
			// 获取胶囊按钮信息
			const { height, top, right, width } = uni.getMenuButtonBoundingClientRect();
			this.globalData.navData = {
				contentMr: width + (screenWidth - right) + 5, 
				statusBarH: statusBarHeight,		
				navBarH: (top - statusBarHeight) * 2 + height,
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData :{
			navData: null,
			version: '2.1.1',
		}
	}
</script>

<style>
	/*每个页面公共css */
	.flex-row{
		display: flex;
		flex-direction: row;
	}
	.flex-column{
		display: flex;
		flex-direction: column;
	}
	button::after{
		border: unset;
		width: 100%;
	}
	.mask{
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.3);
		z-index: 100;
	}
	.a_item{
		align-items: center;
	}
</style>
